package com.wanglei.rdd.create

import org.apache.spark.{SparkConf, SparkContext}

object Spark01_rdd_memory {

  def main(args: Array[String]): Unit = {
    //
    val conf = new SparkConf().setMaster("local[1]").setAppName("rdd")
    val sc = new SparkContext(conf)

    //
    val seq = Seq[Int](1, 2, 3, 4)
    val rdd = sc.parallelize(seq)

    val rdd2 = sc.makeRDD(seq)


    rdd.collect().foreach(println(_))

    //
    sc.stop()
  }
}
